import java.util.Scanner;
public class Main
{
    public static boolean isprim(int n)  {// 判断 n 是否是质数
        if(n < 2) return false;
        for(int i = 2; i <= Math.sqrt(n); i++) {
            if(n % i == 0)
                return false;
        }
        return true;
    }
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        char[] s = in.next().toCharArray();
        int[] hash = new int[26];
        for(int i = 0; i < s.length; i++) {
            hash[s[i] - 'a']++;
        }
        int minn = 1000, maxn = 0;
        for(int i = 0; i < 26; i++) {
            if(hash[i] != 0) {
                minn = Math.min(minn, hash[i]);
                maxn = Math.max(maxn, hash[i]);
            }
        }
        if(isprim(maxn - minn)) {
            System.out.println("Lucky Word");
            System.out.println(maxn - minn);
        } else {
            System.out.println("No Answer");
            System.out.println(0);
        }
    }
}

